﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.PageModule.ModuleConfig
{
    public class PageJumpContent
    { 
        /// <summary>
       /// 标题
       /// </summary>
        [NullValidate("shop.page.title.null")]
        [LenValidate("shop.page.title.len", 1, 50)]
        public string Title { get; set; }

        /// <summary>
        /// 跳转类型
        /// </summary>
        [EnumValidate("shop.page.jump.type.error", typeof(PageJumpType))]
        public PageJumpType JumpType { get; set; }

        /// <summary>
        /// 商品配置
        /// </summary>
        public SkuConfig Sku { get; set; }

        /// <summary>
        /// 活动
        /// </summary>
        public ActivityConfig Activity { get; set; }

        /// <summary>
        /// 跳转链接
        /// </summary>
        public PageLinkConfig Link { get; set; }
    }
}
